﻿<%@ Control Language="C#" %>
<script runat="server">
    private int item_lang = 1;
    public Types types = new Types();
    public int Item_Lang
    {
        get { return item_lang; }
        set { item_lang = value; }
    }

    private int cid = 0;
    /// <summary>
    /// 当前友情链接分类ID
    /// </summary>
    public int Cid
    {
        get { return cid; }
        set { cid = value; }
    }
    /* 数据绑定 */
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Item_Lang == 1)
            Item_Lang = Utils.GetQueryString("lang", 1);
        /* 获取分类信息 */
        if (Cid != 0)
            types = new Types(Cid);
        Links Ad = new Links();
        Repeater_List.DataSource = Ad.Links_List(Item_Lang, Cid);
        Repeater_List.DataBind();
    }
</script>
<h3 class="h3_<%=Cid %>"><a href="news-list.aspx?cid="><%=types.Name %></a></h3>
<ul class="li_<%=Cid %>">
    <asp:Repeater runat="server" ID="Repeater_List">
        <ItemTemplate>
            <li>
                <a href="<%#Eval("Item_Url")%>" class="<%#Eval("Item_Css")%>">
                    <img alt="<%#Eval("Item_Title") %>" title="<%#Eval("Item_Title") %>" src="../DataFile/LinksLogo/<%#Eval("Create_Time","{0:yyyyMM}") %>/<%#Eval("Create_Time","{0:ddHHmmss}") %>.gif" />
                    <span><%#Eval("Item_Title") %></span>
                </a>
            </li>
        </ItemTemplate>
    </asp:Repeater>
</ul>
